<html><head><title>RegisterCommand(String, Func&lt;ICommand&gt;)</title><link href="styles/default.css" type="text/css" rel="stylesheet"/></head><body><div class="header"> </div><br class="clear"/><div class="navigation"><ul><li><a href="index.htm">Documentation</a></li></ul><ul><li><a class="" href="4294967296-PureMVC.Interfaces.htm">PureMVC.Interfaces</a><ul><li><a class="" href="4294967494.htm">IFacade</a><ul><li><a class="" href="4294967494-Methods.htm">Methods</a><ul><li><a class="current" href="4294967503.htm">RegisterCommand</a><ul/></li></ul></li></ul></li></ul></li></ul></div><div class="content"><h1>RegisterCommand(String, Func&lt;ICommand&gt;) Method</h1><div class="summary">Register an <span class="code">ICommand</span> with the <span class="code">Controller</span>. </div><div class="details"><span class="namespace"><em>Namespace:</em> <a href="4294967296-PureMVC.Interfaces.htm">PureMVC.Interfaces</a></span><span class="assembly"><em>Assembly:</em> PureMVC in (PureMVC.dll)
								</span></div>
        <div class="syntax">
            <h2>Syntax</h2>
            <pre><span class="keyword">public</span> <span class="keyword">abstract</span> <span class="keyword">void</span> RegisterCommand(
	<span class="keyword">string</span> notificationName,
	Func&lt;ICommand&gt; commandClassRef
	)</pre>
        </div>
    <div class="parameters"><h3>Parameters</h3><dl><dt>notificationName</dt><dd><div>
				Type:
				String</div><div>the name of the INotification to associate the ICommand with.</div></dd><dt>commandClassRef</dt><dd><div>
				Type:
				Func&lt;&gt;</div><div>a reference to the FuncDelegate of the ICommand</div></dd></dl></div></div><div class="footer">
			Produced by the <a href="http://theboxsoftware.com/products/live-documenter/">Live Documenter</a> developed by <a href="http://theboxsoftware.com">The Box Software</a>.
		</div></body></html>